#include "widget.h"
#include "ui_widget.h"

#include "mythread.h"
//#include<QThread>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    mythread* th=new mythread(this);
    mythread* th2=new mythread(this);
    th->start();
    th2->start();
}

Widget::~Widget()
{
    delete ui;
}

